package com.bestdreamer.threadbasic;

public class HasSelfPrivateNumRun {

    public static void main(String[] args) {
//        HasSelfPrivateNum numRef = new HasSelfPrivateNum();
//        HasSelfPrivateNumThreadA aThread = new HasSelfPrivateNumThreadA(numRef);
//        aThread.start();
//        HasSelfPrivateNumThreadB bThread = new HasSelfPrivateNumThreadB(numRef);
//        bThread.start();

        HasSelfPrivateNum numRef1 = new HasSelfPrivateNum();
        HasSelfPrivateNum numRef2 = new HasSelfPrivateNum();
        HasSelfPrivateNumThreadA aThread = new HasSelfPrivateNumThreadA(numRef1);
        aThread.start();
        HasSelfPrivateNumThreadB bThread = new HasSelfPrivateNumThreadB(numRef2);
        bThread.start();
    }
}
